package com.chen.utils.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 自动填充配置表
 * @author: Long
 * @date: 2023/6/27 21:17
 **/
@Data
@Validated
@TableName("fill")
public class Fill implements Serializable {

    @ApiModelProperty("表主键")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @NotBlank(message = "列名不能为空")
    @ApiModelProperty("列名")
    @TableField("column_name")
    private String columnName;

    @NotBlank(message = "填充类型不能空")
    @ApiModelProperty("FieldFill.INSERT")
    @TableField("field_fill_type")
    private String fieldFillType;

}
